<template>
<el-button @click="test()">submit</el-button>
</template>

<script>
import axios  from "axios";
export default {
    name: "newView",
    methods:{
        test(){
            // axios.get('/api/devices/test')
            //     .then(response => {
            //         console.log(response.data);
            //     })
            //     .catch(error => {
            //         console.error('There was an error!', error);
            //     });
            axios.get("http://localhost:9090/devices/test").then((response) => {
                console.log(response.data)
            })
        }
    }
}
</script>

<style scoped>

</style>